
const port = process.env.port || process.env.npm_config_port || 9525 // dev port
module.exports = {
  publicPath: '/',
  devServer: {
    port: port,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    },
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        // target: 'http://10.131.129.102:31859/',
        target: 'http://localhost:8081/',
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      }
    }
  }
}
